package com.jz.subclass.controller;


import com.jz.subclass.entity.Subclass;
import com.jz.subclass.service.ISubclassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 备件小类表 前端控制器
 * </p>
 *
 * @author jobob
 * @since 2021-12-28
 */
@RestController
public class SubclassController {

    @Autowired
    private ISubclassService subclassService;

    @GetMapping("queryAll")
    public List<Subclass> queryAll() {

        List<Subclass> subclassList = subclassService.queryAll();
            return subclassList;
    }
}
